<?php

class ImageClass extends File
{
    public $assetsPath; // Путь к папке с ресурсами
    public $assetsUrl;	// URL папки с ресурсами
    protected $thumbs;  // возможные размеры

    public function __construct(array $thumbs)
    {
        $this->thumbs=new stdClass();

        foreach($thumbs as $name=>$thumb){
            $this->thumbs->$name=(object)$thumb;
        }

        $this->assetsPath=Yii::app()->basePath.'/../'.Yii::app()->params['uploadImagePath'].'assets/';
        $this->assetsUrl=Yii::app()->params['uploadImagePath'].'assets/';
    }

    public function getThumbs()
    {
        return $this->thumbs;
    }


}